<%@ page import="org.jasig.cas.client.authentication.AttributePrincipal" %><%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2021/9/27
  Time: 14:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    AttributePrincipal principal = (AttributePrincipal)request.getUserPrincipal();
    String loginName = principal.getName();
    request.setAttribute("loginName", loginName);
%>
<html>
<head>
    <title>cas-login</title>
</head>
<body>
<p>
    你已经登录了：${loginName}！<%=request.getAttribute("loginName") %>！
</p>
</body>
</html>
